<template>
  <div class="school">
    <h1>学校名字:{{name}}</h1>
    <h2>学校地址:{{address}}</h2>
</div>
</template>

<script>
    export default {
        name: "SchoolInfo",
        data() {
            return {
                name: "尚硅谷",
                address: "北京市海淀区西二旗"
            }
        }
    }
</script>

<style>
    .school {
        background-color: gray  
    }
</style>